<?php session_start();
include('includes/connect.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hoonur.com allows you to connect with the right professionals in the entertainment industry</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<?php $query=mysql_query('select bg_color,text_color,bg_image,link_color,body_text_color from users where user_id='.$_SESSION['user_id']);
$res=mysql_fetch_array($query);
if($res['bg_image']!='')
{
?>
<style>
body {
	background:<?php echo $res['bg_color'];?>;
	color:<?php echo $res['body_text_color']; ?>
}
p.subtitle {
	color:<?php echo $res['text_color'];?>;
}
a {
	color:<?php echo $res['link_color']; ?>
}
</style>
<?php
}
else
{
?>
<style>
body {
	background:url(images/neo-tn.jpg) fixed;
	color:<?php echo $res['body_text_color']; ?>
}
p.subtitle {
	color:<?php echo $res['text_color'];?>;
}
a {
	color:<?php echo $res['link_color']; ?>
}

</style>
<?php
}
?>
</head>
<body>
<div id="wrapper">
<?php 
$title="Mypage";
include("header.php");
//if(isset($_SESSION['user_id'])) {
?>
<div id="title1">
	<?php //echo $_SESSION['fname'].'&nbsp;'.$_SESSION['lname']; ?> Anuja Koli
</div>
<div id="myprofilecontent">
	<div class="myprofileftcontent">
        	<div id="ProfilePic">		                                       
            </div>            
            <div id="leftmenu">
            	<ul>
                	<li><a href="#">View my gallery</a></li>
                    <li><a href="#">Contact me</a></li>
                    <li><a href="#">Share this profile</a></li>
                    <li><a onClick="window.print()"><span class="textblue">Print this profile</span></a></li>                </ul>
            </div>
            <div>
            	<p class="subtitle">I Follow - 1</p><br />
            
            </div>            
            <div>
            	<p class="subtitle">My Followers - 0</p><br />
            </div>
            <div>
            	<p class="subtitle">Friends - 1</p>
            </div>
            <div>
            	<p class="subtitle">Friend Requests - 0</p>
            </div>      
    </div>
    <div class="myprofilerightcontent">
    	<div>All Photos Videos Audios Description</div>
    	<div class="mypleftprofile">
        	<div id="prof">sdjh
            </div>
        </div>
        <div class="myprightprofile">
            <div>
            	<div id="topcurve"><p class="subtitle meter">Popularity Meter</p></div>
                <div id="middlecurve">
                	<div class="profdet">
                		<div>Friends Followers</div>	 
                        <div>
                        	<?php $sql=mysql_query('select * from users where user_id=7'); 
								$row=mysql_fetch_array($sql);
							?>
                            <table>
                            	<tr><td>Name:</td><td><?php echo $row['fname'].'&nbsp;'.$row['lname'];?></td></tr>
                                <tr><td>Location:</td><td><?php echo $row['location'];?></td></tr>
                                <tr><td>Gender:</td><td><?php echo $row['gender'];?></td></tr>
                                <tr><td>Dob:</td><td><?php echo $row['birthdate'];?></td></tr>
                                <?php if($row['height_id'] !='') {?>
                                <tr><td>Height:</td><td></td></tr>
                                <?php } 
								if($row['eyes_type_id'] !='') {?>
                                <tr><td>Eyes:</td><td></td></tr>
                                <?php } 
								if($row['hair_type_id'] !='') {?>
                                <tr><td>Hair:</td><td></td></tr>
                                <?php } 
								if($row['skin_type_id'] !='') {?>
                                <tr><td>Skin color:</td><td></td></tr>
                                <?php } 
								if($row['body_type_id'] !='') {?>
                                <tr><td>Body:</td><td></td></tr>
                                <?php } ?>                                
                            </table>
                            	<div><p class="subtitle">My social profiles</p></div>
                            	<div>
                            	<?php $profile_id=substr($row['profile_code'],0,15); ?><a href="www.hoonur.com/profile.php?p=<?php echo $row['profile_code']; ?>">www.hoonur.com/<?php echo $profile_id; ?></a>
                                </div>
								<?php if($row['fb_link'] !='') {?>
                                <div><?php echo $row['fb_link']; ?></div>
                                <?php } 
								if($row['twitter_link'] !='') {?>
                                <div><?php echo $row['twitter_link']; ?></div>
                                <?php } ?>
                        </div>
                    </div>
                </div>
                <div id="bottomcurve"></div>
            </div>
            <br /><br />
            <div>
            <img src="images/imgad.gif" />
            </div><br />           
            <div>
                <p class="subtitle">Pending Recommendations - 0</p>
            </div>
        </div>
    </div>    
</div>
<div style="clear:both;"></div>    
<div id="add">
	<img src="images/addsense.jpg" />
</div>
    
<?php include("footer.php");
/*}
else{
	header("Location:login.php");
}*/?>
</div>
</body>
</html>
